{% extends "simple_cfp/cfp_base.html" %}
{% load i18n %}
{% block content %}
<div id="content-main">
{% if presentation %}
    <p>
    Your presentation has been successfully submitted.
    </p>

    {% if email_sent %}
    A submission receipt has been emailed to you.
    {% else %}
    <p>
    <b>Your presentation submission code is:</b>
    {{ presentation.submission_code }}.
    </p>

    <p>
    <b>Please save this number</b> and refer to it if you need to contact us
    regarding this presentation submission.
    </p>
    {% endif %}

    <p>
    You have submitted the following presentation. We will contact you at
    {{ presentation.speaker.contact_email }} to let you know whether the presentation
    has been accepted or not.
    </p>

    <p>
    <a href=".">Click here to submit another presentation.</a>
    </p>

    <table>
    <tr>
        <td>Title</td>
        <td>{{ presentation.title }}</td>
    </tr>
    <tr>
        <td>Categories</td>
        <td>{{ presentation.categories.all|join:", " }}</td>
    </tr>
    <tr>
        <td>Audiences</td>
        <td>{{ presentation.audiences.all|join:", " }}</td>
    </tr>
    <tr>
        <td>Description</td>
        <td>{{ presentation.description }}</td>
    </tr>
    {% if additional_speakers %}
    <tr>
        <td>Additional Speakers</td>
        <td>{{ additional_speakers|join:", " }}</td>
    </tr>
    {% endif %}
    {% if upload %}
    <tr>
        <td colspan="2">
        {% if presentation.file %}
        <a href="{{ presentation.file.url }}">Presentation</a>
        {% else %}
        No Presentation
        {% endif %}
        </td>
    </tr>
    {% endif %}
    </table>
{% else %}
    Error: No presentation info.
{% endif %}
</div>
{% endblock %}

